<?php
  require_once('includes/db.php');
  require_once('includes/header.php');
?>
    <div class="container">
<!------ Form Start --------->
      <form method="post" action="save_product.php" class="form-horizontal" role="form" enctype="multipart/form-data">
        <h2 class="form-signin-heading">::Add Product::</h2>

        <div class="form-group">
          <label for="inputName" class="col-lg-2 control-label">Name</label>
          <div class="col-lg-10">
            <input name="name" type="text" class="form-control" placeholder="Name">
          </div>
        </div>


        <div class="form-group">
          <label class="col-lg-2 control-label">Price</label>
          <div class="col-lg-10">
            <input name="price" type="text" maxlength="7" class="form-control"  placeholder="Price">
          </div>
        </div>

        <div class="form-group">
          <label  class="col-lg-2 control-label">Upload Image</label>
          <div class="col-lg-10">
            <input name="image" type="file" class="select" >
          </div>
        </div>

        <div class="form-group">
          <label class="col-lg-2 control-label">Category</label>
          <div class="col-lg-10">
<?php
  echo getCategoriesDropdown('category_id');
?>
          </div>
        </div>

        <div class="form-group">
          <div class="col-lg-offset-2 col-lg-10">
            <input type="submit" class="btn btn-warning btn-lg" value="Add Product">
          </div>
        </div>
      </form>
<!------ Form End --------->
    </div> <!-- /container -->
<?php
  require_once('includes/footer.php');
